import { ToolTipItem } from "../../../../../com/mui/manager/ToolTipItem";
import { ObjCreate } from "../../common/ObjCreate";
import { Language } from "../../../../../extend/language/Language";
import { GLoadedButton } from "../../../../../com/mui/controls/GLoadedButton";
type int = number;
//class GuildRoomIcon
    
    export  class GuildRoomIcon extends ToolTipItem
    {
        constructor()
        {
            super();
            this.init();
            this.buttonMode = true;
            this.useHandCursor = true;
            this.addEventListener(flash.events.MouseEvent.CLICK, this.onThisClickHandler);
            return;
        }

        /* internal  */init(): void
        {
            this._iconBtn = ObjCreate.createGLoadedButton("", 0, 0, 24, 24, this);
            return;
        }

        /* internal  */onThisClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            return;
        }

        public get level(): int
        {
            return this._level;
        }

        public set level(arg1: int)
        {
            this._level = arg1;
            if (arg1 > 0) 
            {
                this._iconBtn.styleName = "GuildRoom" + this.level;
            }
            this._iconBtn.visible = arg1 > 0;
            this._iconBtn.invalidate();
            this._iconBtn.drawNow();
            this.toolTipData = Language.getStringByParam(57398, this._level);
            return;
        }

        /* internal */ /* var */_iconBtn: GLoadedButton;

        /* internal */ /* var */_level: int;
    }
